﻿using System.Xml.Serialization;

namespace Toybox.NicoSharp.Seiga
{
	partial class Manga
	{

		[XmlRoot("response")]
		public new class Data
		{
			public int image_count;

			[XmlArrayItem("image")]
			public Image[] image_list;

			[XmlArrayItem("comment")]
			public SeigaComment[] comment_list;

			[XmlArrayItem("thread")]
			public Thread[] threads;
		}

		public new class Image
		{

			public string id;

			public string se_id;

			public string bgm_id;

			public string bgm_loop;

			public int duration;

			public string thread;

			public string leaf;

			public int width;

			public int height;

			public string spread_mode;

			public string cache_time;

			public string source_url;

			public string drm_hash;

			public string se_path;

			public string bgm_path;

			[XmlElement]
			//[XmlArrayItem("balloon")]
			public Balloon[] balloon;
			
		}
		
		public class Balloon
		{

			public string image_id;

			public int x;

			public int y;

			public int w;

			public int h;

			public bool is_auto;

			public string version;

		}

		public class Thread
		{
			public string id;

			public string url;
		}

	}
}
